package com.api.shopapi.service.impl;

import com.api.shopapi.entity.TotalOrderMonth;
import com.api.shopapi.mapper.TotalOrderMonthMapper;
import com.api.shopapi.service.TotalOrderMonthService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("TotalOrderMonthServiceImplOne")
public class TotalOrderMonthServiceImpl implements TotalOrderMonthService {


    @Autowired
    private TotalOrderMonthMapper totalOrderMonthMapper;

    @Override
    public
    int insert(TotalOrderMonth totalOrderMonth){
        return totalOrderMonthMapper.insert(totalOrderMonth);
    }

    @Override
    public
    List<TotalOrderMonth> ListThisYear(String businessCode, String year){
        return totalOrderMonthMapper.ListThisYear(businessCode,year);
    }


}
